<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>&nbsp;</title>
    </head>
    <body>
        <#if (btAddr.id)??>
         <form id="fm" method="post" action="app/btAddr/update">
         <input type="hidden" name="id" value="${(btAddr.id)!}">
        <#else>
         <form id="fm" method="post" action="app/btAddr/add">
         <input type="hidden" name="user_id" value="${(btAddr.user_id)!}">
         <input type="hidden" name="currency_id" value="${(btAddr.currency_id)!}">
        </#if>
        
                <div style="margin-bottom:10px">
                        <input class="easyui-textbox" name="uname" style="width:100%" value="${(btAddr.uname)!}" data-options="label:'昵称:',required:true,editable:false">
                </div>
                <div style="margin-bottom:10px">
                        <input class="easyui-textbox" name="currency_title" style="width:100%" value="${(btAddr.currency_title)!}" data-options="label:'币种名称:',required:true,editable:false">
                </div>
                <div style="margin-bottom:10px">
                        <input class="easyui-textbox" name="addr" style="width:100%;height:120px" value="${(btAddr.addr)!}" data-options="label:'提币地址:',required:true,multiline:true">
                </div>
                <div style="margin-bottom:10px">
                        <input class="easyui-textbox" name="opt" style="width:100%;height:60px" value="${(btAddr.opt)!}" data-options="label:'备注:',required:true,multiline:true">
                </div>
        </form>
        <div style="text-align:center;padding:5px">
            <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()" style="width:80px">保存</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <#if btAddr??>
                <a href="javascript:void(0)" class="easyui-linkbutton" onclick="closeForm()" style="width:80px">关闭</a>
            <#else> 
                <a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()" style="width:80px">重置</a>
            </#if>
        </div>
       
       <script type="text/javascript">
            function submitForm(){
                $('#fm').form('submit',{
                	success:function(){
                		$('#form').dialog('close');
                	}
                });
            }
            function clearForm(){
                $('#fm').form('clear');
            }
            function closeForm(){
            	$('#form').dialog('close');
            }
       </script>
    </body>
     
</html>